home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 85 / CD Temático 40 Febrero 2004.iso / DOS / testdisk / src / types.h < prev   
Encoding:
C/C++ Source or Header  |  2004-01-09  |  1.7 KB  |  73 lines

  1. /*
  2.  
  3.     file: types.h
  4.  
  5.     Copyright (C) 1998-2004 Christophe GRENIER <grenier@cgsecurity.org>
  6.   
  7.     this software is free software; you can redistribute it and/or modify
  8.     it under the terms of the gnu general public license as published by
  9.     the free software foundation; either version 2 of the license, or
  10.     (at your option) any later version.
  11.   
  12.     this program is distributed in the hope that it will be useful,
  13.     but without any warranty; without even the implied warranty of
  14.     merchantability or fitness for a particular purpose.  see the
  15.     gnu general public license for more details.
  16.   
  17.     you should have received a copy of the gnu general public license
  18.     along with this program; if not, write to the free software
  19.     foundation, inc., 675 mass ave, cambridge, ma 02139, usa.
  20.  
  21.  */
  22. #include <sys/types.h>
  23. #ifdef DJGPP
  24. #include <bios.h>
  25. #include <curses.h>
  26. #else
  27. #include <ncurses.h>
  28. #endif
  29.  
  30.  
  31. typedef char int8;
  32. typedef short int int16;
  33. typedef int int32;
  34. typedef long long int int64;
  35.  
  36. #ifndef _EXT2_TYPES_H
  37. #ifndef _LINUX_TYPES_H
  38. typedef char __s8;
  39. typedef short int __s16;
  40. typedef int __s32;
  41. typedef long long int __s64;
  42.  
  43. typedef unsigned char __u8;
  44. typedef unsigned short int __u16;
  45. typedef unsigned int __u32;
  46. typedef unsigned long long int __u64;
  47. #endif
  48. #endif
  49.  
  50. typedef unsigned char uint8;
  51. typedef unsigned short int uint16;
  52. typedef unsigned int uint32;
  53. typedef unsigned long long int uint64;
  54.  
  55. typedef unsigned char byte;
  56. typedef unsigned short int word;
  57. typedef unsigned long int dword;
  58.  
  59. #if defined __DJGPP__
  60. typedef uint8 u_int8_t;
  61. typedef uint16 u_int16_t;
  62. typedef uint32 u_int32_t;
  63. typedef uint64 u_int64_t;
  64. #ifndef __DJ_loff_t
  65. typedef uint64 loff_t;
  66. #endif
  67. #endif
  68. #if defined BSD
  69. typedef uint64 loff_t;
  70. #endif
  71.  
  72.  
  73.